package org.example.lost.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.lost.entity.FoundInfo;
import org.example.lost.entity.LostInfo;
import org.example.lost.entity.vo.HistoryInfoVO;
import org.example.lost.entity.vo.LostInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author hxy
 * @Date 2021/3/21 19:29
 * @Version 1.0
 */
@Mapper
@Repository
public interface FoundMapper {

    int insertFoundInfo(FoundInfo foundInfo);

    List<FoundInfo> selectList(LostInfoVO lostInfoVO);

    int deleteByPrimaryKey(String foundId);

    int updateByPrimaryKey(FoundInfo foundInfo);

    List<FoundInfo> selectByPrimaryKey(HistoryInfoVO historyInfoVO);

    int updateClaim(@Param("userId") String userId,@Param("foundId") String foundId);

    int updateCheckStatus(@Param("foundId")String foundId,@Param("status") String status);

    String selectUserPhone(String foundId);
}
